<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>左导航+右内容布局</title>
    <style>
        *{
            margin: 0;
            padding: 0;}
        body{
            display: grid;
            height: 100vh;
            grid-template-columns:1fr 5fr;
            column-gap: 10px;

        }
        div{
            background-color: #e5e5e5;
        }

    </style>
</head>
<body>
    <div class="left"></div>
    <div class="right"></div>
</body>
</html>